﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Services;
using PWS.Entities;
using PWS.DAL;

namespace PWS
{
    /// <summary>
    /// Summary description for Service1
    /// </summary>
    [WebService(Namespace = "http://tempuri.org/")]
    [WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
    [System.ComponentModel.ToolboxItem(false)]
    // To allow this Web Service to be called from script, using ASP.NET AJAX, uncomment the following line. 
    // [System.Web.Script.Services.ScriptService]
    public class Service1 : System.Web.Services.WebService
    {

           [WebMethod]
        public Customer[] GetCustomers()
        {
            Customer[] cust = CustomerAccess.GetCustomers();
            return cust;
        }

           [WebMethod]
           public Order[] GetOrder()
           {
               Order[] Order = OrderAccess.GetOrders();
               return Order;
           }

           [WebMethod]
           public Accessories[] GetAccessories()
           {
               Accessories[] Accessories = AccessoriesAccess.GetAccessories();
               return Accessories;
           }

           [WebMethod]
           public Suits[] GetSuits()
           {
               Suits[] Suits = SuitsAccess.GetSuits();
               return Suits;
           }


           [WebMethod]
           public bool InsertCustomer(Customer newCustomer)
           {
               return CustomerAccess.InsertCustomer(newCustomer);
           }

           [WebMethod]
           public StoreLocation[] GetStoreLocation()
           {
               StoreLocation[] StoreLocation = StoreLocationAccess.GetStoreLocation();
               return StoreLocation;
           }
           


    }
}
